package org.dzq.designmode.command;

/**
 * @ClassName: Invoker
 * @Package: org.dzq.designmode.command
 * @author: 越
 * @date: 2023/6/19 20:37
 * @Description: 调用者
 */
public class Invoker {

    private Command command;

    public Invoker(Command command){
        this.command = command;
    }

    public void invoke(){
        command.executeCommand();
    }
}
